package cn.huaqingcheng.tianshu.infrastructure.start.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 站点组表
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(doNotUseGetters = true)
@TableName("site_group")
public class SiteGroupEntity {

    /**
     * 站点组ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户ID
     */
    @TableField("account_id")
    private Long accountId;

    /**
     * 父级站点组ID
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 站点组名称
     */
    @TableField("\"name\"")
    private String name;

    /**
     * 站点组图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 站点组描述信息
     */
    @TableField("description")
    private String description;

    /**
     * 站点组排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 版本号
     */
    @TableField("version")
    private Integer version;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

}
